package com.lagou.service.impl;

import com.lagou.service.Method;

import java.util.Random;

/**
 * @author zy
 * @version 1.0
 * @date 2021/2/27 22:46
 */
public class MethodServiceImpl implements Method {


    @Override
    public String methodA(String A) {
        try {
            Thread.sleep((long) (Math.random()*100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello A"+A;
    }

    @Override
    public String methodB(String B)  {
        try {
            Thread.sleep((long) (Math.random()*100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello B"+B;
    }

    @Override
    public String methodC(String C)  {
        try {
            Thread.sleep((long) (Math.random()*100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello C"+C;
    }
}
